<template>
  <div id="app">
    <div class="top">
      <img src="/uploads/splb1.jpg" alt />
    </div>
    <div class="conten">
      <div class="trade">CY慕斯白玉卷 150g/盒</div>
      <div class="price">
        <span class="price1">￥29.8</span>
        <div class="shopping">
          <span class="shopping1">加入购物车</span>
        </div>
      </div>
      <div class="coupon">
        <span class="coupon1">领券</span>
        <span class="coupon2">10元领取</span>
        <span class="coupon3">4元领取</span>
      </div>
      <div class="purchase">
        <p class="purchase1">搭配购买</p>
        <div class="lbtv">
          <div class="lbtv1" v-for="(c,index) in modity" :key="index">
            <span class="commodity">
              <img :src="$baseImgUrl+'/uploads/'+c.img" alt />
            </span>
            <span class="commodity1">{{c.title1}}</span>
            <span class="commodity2">
              <b>￥{{c.title3}}</b>
              <i></i>
            </span>
          </div>
        </div>
      </div>
      <div class="ole">
        <div class="ole1">
          <img src="/uploads/xsdd.png" />
          <b>Ole精品超市（苏州龙湖）</b>
          <span>
            <img src="/uploads/dhua.png" alt />
            联系商家
          </span>
        </div>
        <div class="ole2">
          <span class="sppj">商品评价</span>
          <span class="zwpj">暂无评价</span>
        </div>
      </div>
      <div class="explain">
        <p class="p1">价格说明</p>
        <p class="p2">
          <b>划线价格：</b>划线的价格并非《中华人民共和国价格法》及《禁止价格欺诈行为的规定》等相关法律法规中所指商品“原价”的含义，仅为到家平台商家处商品的供应商指导价或建议零售价，
        </p>
        <p class="p3">
          <b>未划线价格：</b>未划线的价格指该商家处商品在京东到家平台实时标价，具体成交价格根据商品参加的活动，或者您使用优惠券等发生变化，最终以订单结算页面价格为准。
        </p>
      </div>
    </div>
    <div class="buoot">
      <span class="buoot1"></span>
      <span class="buoot2">购物车是空的</span>
      <span class="buoot3">20元起送</span>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      modity: []
    };
  },
  created() {
    this.getModity();
  },
  methods: {
    getModity() {
      this.$api.getModity(result => {
        this.modity = result.data.data;
      });
    }
  }
};
</script>
<style lang="scss" scoped>
#app {
  height: 100vh;
  background-color: #f6f6f6;
  .buoot {
    width: 100vw;
    height: 50px;
    // border: 1px solid red; 
    position: relative;
    .buoot3{
      width: 110px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      color:#fff;
      // border: 1px solid red;
      display: inline-block;
      position: absolute;
      right: 0;
      background: #999;
    }
    .buoot2 {
      width: 100px;
      height: 50px;
      font-size: 14px;
      color: #999;
      line-height: 50px;
      // border: 1px solid red;
      display: inline-block;
      position: absolute;
      left: 80px;
    }
    .buoot1 {
      width: 50px;
      height: 50px;
      background: url("/uploads/gwc.png");
      background-size: 100%;
      // border: 1px solid red;
      display: inline-block;
      position: absolute;
      top: -10px;
      left: 10px;
    }
  }
  .conten {
    width: 370px;
    height: 780px;
    border: 1px solid red;
    overflow: hidden;
    background-color: #f6f6f6;
    .explain {
      width: 100vw;
      height: 200px;
      border-radius: 20px;
      margin-top: 10px;
      background: #fff;
      border: 1px solid red;
      .p1 {
        color: #333333;
        font-size: 15px;
        margin-bottom: 10px;
        margin-left: 10px;
      }
      .p2 {
        color: #333333;
        font-size: 12px;
        line-height: 17px;
        margin-left: 10px;
      }
      .p3 {
        color: #333333;
        font-size: 12px;
        line-height: 17px;
        margin-left: 10px;
      }
    }
    .ole {
      width: 100vw;
      height: 100px;
      margin-top: 10px;
      border-radius: 20px;
      border: 1px solid red;
      background: #fff;
      .ole2 {
        width: 100vw;
        height: 50px;
        line-height: 50px;
        position: relative;
        .zwpj {
          width: 100px;
          height: 50px;
          font-size: 12px;
          position: absolute;
          right: 0px;
          display: inline-block;
        }
        .sppj {
          width: 100px;
          height: 50px;
          font-size: 16px;
          margin-left: 10px;
          // border: 1px solid red;
          display: inline-block;
        }
        // border: 1px solid red;
      }
      .ole1 {
        width: 100vw;
        height: 50px;
        line-height: 50px;
        border-bottom: 1px solid red;
        span {
          margin-left: 40px;
        }
        img {
          width: 16px;
          height: 16px;
          margin-left: 5px;
          margin-right: 5px;
        }
      }
    }
    .purchase {
      width: 370px;
      height: 250px;
      border-radius: 15px;
      border: 1px solid red;
      margin-top: 10px;
      background: #fff;
      overflow: hidden;
      .lbtv {
        width: 100vw;
        height: 199px;
        margin-top: 0px;
        border: 1px solid red;
        white-space: nowrap;
        overflow-x: scroll;
        .lbtv1 {
          width: 102px;
          height: 189px;
          border: 1px solid red;
          display: inline-block;
          overflow: hidden;
          position: relative;
          margin-left: 10px;
          .commodity2 {
            width: 102px;
            height: 35px;
            border: 1px solid red;
            position: absolute;
            left: 0;
            bottom: 0;
            b {
              width: 40px;
              height: 30px;
              color: red;
              display: inline-block;
              // border: 1px solid red;
            }
            i {
              width: 40px;
              height: 40px;
              background: url("/uploads/jiah.png");
              background-repeat: no-repeat;
              background-size: 60%;
              display: inline-block;
              position: absolute;
              top: 0px;
              right: -10px;
              // border: 1px solid red;
            }
          }
          .commodity1 {
            width: 102px;
            height: 35px;
            font-size: 12px;
            height: 32px;
            line-height: 16px;
            margin-top: 5px;
            border: 1px solid red;
            display: inline-block;
            position: absolute;
            left: 0;
            top: 104px;
            overflow: hidden;
            white-space: normal;
          }
          .commodity {
            width: 102px;
            height: 102px;
            border: 1px solid red;
            display: inline-block;
            //  background-color: #f6f6f6;
            img {
              width: 102px;
              height: 102px;
              border: 1px solid red;
              display: inline-block;
              background-color: rgba(0, 0, 0, 0.03);
            }
          }
        }
      }
      .purchase1 {
        width: 370px;
        height: 22px;
        color: #000;
        margin-top: 10px;
        padding-left: 10px;
        border: 1px solid red;
      }
    }
    .coupon {
      width: 370px;
      height: 50px;
      border-radius: 15px;
      line-height: 50px;
      background: #fff;
      border: 1px solid red;
      margin-top: 10px;

      .coupon1 {
        width: 30px;
        height: 17px;
        margin-left: 10px;
        margin-right: 10px;
      }
      .coupon2 {
        width: 30px;
        height: 17px;
        margin-left: 10px;
        margin-right: 10px;
      }
      .coupon3 {
        width: 30px;
        height: 17px;
        margin-left: 10px;
        margin-right: 10px;
      }
    }
    .price {
      width: 370px;
      height: 54px;
      line-height: 54px;
      border: 1px solid red;
      position: relative;
      background: #fff;
      .shopping {
        width: 85px;
        height: 33px;
        border-radius: 18px;
        line-height: 33px;
        display: inline-block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: linear-gradient(270deg, #00be34, #00cb1e);
        .shopping1 {
          font-size: 13px;
          color: #fff;
          height: 33px;
          line-height: 33px;
          position: absolute;
          right: 10px;
        }
      }
      .price1 {
        color: rgb(255, 87, 87);
        font-size: 28px;
        font-weight: bold;
      }
    }
    .trade {
      width: 370px;
      height: 39px;
      font-size: 18px;
      padding-left: 10px;
      color: #333;
      line-height: 39px;
      // border: 1px solid red;
      word-break: break-all;
      background: #fff;
    }
  }
  .top {
    width: 370px;
    height: 370px;
    // border: 1px solid red;
    img {
      width: 368px;
      height: 368px;
    }
  }
}
</style>
<style lang="scss">
body {
  padding: 0px;
  margin: 0px;
}
</style>